package com.wangzh.schedu;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class Task {

    @Scheduled(cron = "0/10 * * * * ?")
    public void task1(){

        System.out.println(Thread.currentThread().getName()+"   run ----");
    }
}
